package com.xdf.teacher.entity;

import java.io.Serializable;

/**
 * 作者 ： dyj
 * 时间 ： 2016/3/29.
 */

public class User implements Serializable {

    /**
     * errorcode : -3
     *
     * errormsg : 信息不正确
     */

    private int errorcode;
    private String errormsg;
    /**
     * result : {"id":"bkt20","username":"XDFLS20","room_type":2,"password":"111111","role":1,"nick_name":"XDFLS20"}
     */

    private ResultBean result;


    public int getErrorcode() {
        return errorcode;
    }

    public void setErrorcode(int errorcode) {
        this.errorcode = errorcode;
    }

    public String getErrormsg() {
        return errormsg;
    }

    public void setErrormsg(String errormsg) {
        this.errormsg = errormsg;
    }

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    public static class ResultBean {
        /**
         * id : bkt20
         * username : XDFLS20
         * room_type : 2
         * password : 111111
         * role : 1
         * nick_name : XDFLS20
         */

        private String id;
        private String username;
        private int room_type;
        private String password;
        private int role;
        private String nick_name;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public int getRoom_type() {
            return room_type;
        }

        public void setRoom_type(int room_type) {
            this.room_type = room_type;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }

        public int getRole() {
            return role;
        }

        public void setRole(int role) {
            this.role = role;
        }

        public String getNick_name() {
            return nick_name;
        }

        public void setNick_name(String nick_name) {
            this.nick_name = nick_name;
        }
    }
}
